package com.example.testproj.design.state.workstate;

import android.util.Log;

import com.example.testproj.design.state.Work;

/**
 * @des:
 * @author: 芮勤
 * @date: 2019/6/17 13:33
 * @see {@link }
 */
public class ForenoonState extends WorkState {
    @Override
    public void writeProgram(Work work) {
        if (work.getHour() < 12) {
            Log.d(TAG, "当前时间是" + work.getHour() + "上午工作，精神百倍");
        } else {
            work.setState(new NoonState());
            work.writeProgram();
        }
    }
}
